css: Add transform style property
authorTimm Bäder <mail@baedert.org>
Sat, 19 Jan 2019 07:53:08 +0000 (08:53 +0100)
committerBenjamin Otte <otte@redhat.com>
Thu, 21 Feb 2019 18:47:28 +0000 (19:47 +0100)
docs/reference/gtk/css-properties.xml
gtk/gtkcssstylepropertyimpl.c
gtk/gtkcsstypesprivate.h

index c53cbbf73086fd6d2c3a724a7e28d25d17c1a404..cfca161678c2de41c2a7b80a3a88cb6ec7026494 100644 (file)
@@ -623,6 +623,16 @@ We use <literallayout> for syntax productions, and each line is put in a <code>
             <row><entry>Name</entry><entry>Value</entry><entry>Initial</entry><entry>Inh.</entry><entry>Ani.</entry><entry>Reference</entry><entry>Notes</entry></row>
           </thead>
           <tbody>
+            <row>
+              <entry><phrase role="nowrap">transform</phrase></entry>
+              <entry><code>none | 〈transform〉+</code></entry>
+              <entry><code>none</code></entry>
+              <entry></entry>
+              <entry>✓</entry>
+              <entry><ulink url="https://www.w3.org/TR/css-transforms-1/">CSS3</ulink>,
+                     <ulink url="https://drafts.csswg.org/css-transforms-2/">3D</ulink></entry>
+              <entry></entry>
+            </row>
             <row>
               <entry><phrase role="nowrap">min-width</phrase></entry>
               <entry><code>〈length〉</code></entry>
index ac8cf75974d5f17d2c6c7c04900d52f69145df6a..62ddce3cd0f9918aac2c4c7e0cab672f1020ee52 100644 (file)
@@ -1609,7 +1609,6 @@ _gtk_css_style_property_init_properties (void)
                                           filter_value_parse,
                                           NULL,
                                           gtk_css_filter_value_new_none ());
-
   gtk_css_style_property_register        ("border-spacing",
                                           GTK_CSS_PROPERTY_BORDER_SPACING,
                                           G_TYPE_NONE,
@@ -1620,6 +1619,14 @@ _gtk_css_style_property_init_properties (void)
                                           _gtk_css_position_value_new (_gtk_css_number_value_new (0, GTK_CSS_PX),
                                                                        _gtk_css_number_value_new (0, GTK_CSS_PX)));
 
+  gtk_css_style_property_register        ("transform",
+                                          GTK_CSS_PROPERTY_TRANSFORM,
+                                          G_TYPE_NONE,
+                                          GTK_STYLE_PROPERTY_ANIMATED,
+                                          GTK_CSS_AFFECTS_SIZE,
+                                          transform_value_parse,
+                                          NULL,
+                                          _gtk_css_transform_value_new_none ());
   gtk_css_style_property_register        ("min-width",
                                           GTK_CSS_PROPERTY_MIN_WIDTH,
                                           G_TYPE_INT,
index 218a15980c54c6497ba4e39dfcabc4bebb6520bb..e305fdfb9d6b865f9d3294dea0228415c5e859d3 100644 (file)
@@ -222,6 +222,7 @@ enum { /*< skip >*/
   GTK_CSS_PROPERTY_ICON_TRANSFORM,
   GTK_CSS_PROPERTY_ICON_FILTER,
   GTK_CSS_PROPERTY_BORDER_SPACING,
+  GTK_CSS_PROPERTY_TRANSFORM,
   GTK_CSS_PROPERTY_MIN_WIDTH,
   GTK_CSS_PROPERTY_MIN_HEIGHT,
   GTK_CSS_PROPERTY_TRANSITION_PROPERTY,